from agno.agent import Agent
from agno.models.deepseek import DeepSeek
from agno.team import Team
from agno.tools.duckduckgo import DuckDuckGoTools

# Create individual specialized agents
researcher = Agent(
    name="研究员",
    role="擅长查找信息和研究",
    tools=[DuckDuckGoTools()],
    model=DeepSeek(id="deepseek-chat"),
    monitoring=True,
    debug_mode=True,
)

writer = Agent(
    name="作家",
    role="擅长撰写明晰、有趣的内容",
    model=DeepSeek(id="deepseek-chat"),
    monitoring=True,
    debug_mode=True,
)

# Create a team with these agents
content_team = Team(
    name="内容创作团队",
    mode="coordinate",
    members=[researcher, writer],
    instructions="你是一个研究员和作家团队，合作创建高质量的内容。",
    # instructions="You are a team of researchers and writers that work together to create high-quality content.",
    model=DeepSeek(id="deepseek-chat"),
    markdown=True,
    monitoring=True,
    debug_mode=True,
)

# Run the team with a task
# content_team.print_response("Create a short article about quantum computing")

content_team.print_response("写一篇关于量子计算的短文")
